import hyRequest from '@/service'

//轮播图
export function getBanners() {
  return hyRequest.get({
    url: '/banner'
  })
}

//热门推荐
export function getHotRecommend() {
  return hyRequest.get({
    url: '/personalized'
  })
}

//新碟上架
export function getNemAlum(offset = 0, limit = 10){
  return hyRequest.get({
    url:'/album/new',
    params:{
      offset,
      limit
    }
  })
}

//入驻歌手列表
export function getArtistList(cat: number, limit: number) {
  return hyRequest.get({
    url: '/artist/list',
    params: {
      cat,
      limit
    }
  })
}

//榜单
export function getRankingList(id: number) {
  return hyRequest.get({
    url: '/playlist/detail',
    params: {
      id
    }
  })
}



